package com.youxin.cpcenter.service.impl;

import com.youxin.cpcenter.bean.EntMemberBean;
import com.youxin.cpcenter.bean.RequestEntMemberBean;
import com.youxin.cpcenter.dao.TbEntMemberIdentifyMapper;
import com.youxin.cpcenter.service.EntMemberIdentifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @desc 企业认证服务
 * @author Kris.wang
 * @date 2018-1-4
 */
@Service("entMemberIdentifyService")
public class EntMemberIdentifyServiceImpl implements EntMemberIdentifyService {

    @Autowired
    private TbEntMemberIdentifyMapper tbEntMemberIdentifyMapper;

    /**
     * @desc 验证企业认证
     * @param companyUid
     * @return
     */
    @Override
    public int verifyCompanyCert(String companyUid) {
        int ret = tbEntMemberIdentifyMapper.verifyCompanyCert(companyUid);
        if (ret>0) {
            return 1;
        }
        return 0;
    }
}
